/*
 * @Author: HuangBingQuan <17671241237@163.com>
 * @Date: 2025-01-18 17:55:22
 * @LastEditTime: 2025-01-18 18:27:23
 * @FilePath: /low-code-platform/src/stores/useMaterial.ts
 */
import { defineStore } from 'pinia';
import { defaultStatusMap } from '@/config/defaultStatus/defaultStatusMap.ts';
import { setTextStatus, addOption } from './actions.ts';

export const useMaterialStore = defineStore('materialStore', {
    state: () => ({
        currentMaterialCom: 'single-select',
        coms: {
            'single-select': defaultStatusMap['single-select'](),
        },
    }),
    actions: {
        setTextStatus,
        addOption
    }
});
